#include <QApplication>
#include <QThread>

#include "mainwindow.h"
#include "globals.h"

class MyThread : public QThread
{
private:
    MainWindow *m_canvas;
public:
    MyThread();
    MyThread(MainWindow *canvas);
    void run();
};

//void MyThread::run(){
//    exec();
//    sleep(5);
//    Pump p = qgraphicsitem_cast<Pump>(m_canvas->children()[0]);
//    p.changeStatus();
//}

//MyThread::MyThread(MainWindow *canvas){
//    m_canvas = canvas;
//}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
//    MyThread t(&w);
//    t.run();
    return a.exec();
}
